package com.bwie.testlibrary;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bwie.lib_core.filed.UrlFiled;
import com.bwie.lib_core.imgload.BasicImageLoader;

public class ImageActivity extends AppCompatActivity {
    //图片地址
    //http://img0.imgtn.bdimg.com/it/u=3514781329,779390369&fm=26&gp=0.jpg
    //http://jn.android.tedu.cn/img/201702/1487152558692.png
    ImageView img;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_img);
        img = findViewById(R.id.img);
        new BasicImageLoader.BasicBuilder().setImg(img).
                setUrl("http://jn.android.tedu.cn/img/201702/1487152558692.png")
                .build().load();
    }
}
